package ftp;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class TcpServer {
	public static void main(String[] args) throws IOException {
		ServerSocket server = new ServerSocket(8888);
		while(true){
			Socket socket = server.accept();
			new Thread(new Chater(socket)).start();
		}
	}
}
